package com.xiaolin.oa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.xiaolin.oa.model.dto.BuOvertimeDto;
import com.xiaolin.oa.model.dto.OvertimeQuery;
import com.xiaolin.oa.model.entity.BuOvertime;

/**
 * <p>
 * 加班表 服务类
 * </p>
 *
 * @author xiaolin
 * @since 2024-08-22
 */
public interface BuOvertimeService extends IService<BuOvertime> {
    PageInfo<BuOvertimeDto> getOvertimePage(Integer page, Integer pageSize, OvertimeQuery query);

    void checkUnique(BuOvertime overtime);

    boolean addOvertime(BuOvertime overtime);

    BuOvertime getOvertime(Integer id);

    boolean updateOvertime(BuOvertime overtime);

    boolean deleteOvertime(Integer id);
}
